This simple design, possible because the data obeys strict LIFO order, means that no complex data structure is needed to track stack contents - a simple pointer to the top of the stack will do.
这种简单的设计,很有可能是考虑到数据操作都符合后进先出(LIFO )规则,这意味着访问栈的内容并不需要复杂的数据结构,一个简单的栈顶指针就能搞定一切。
You can't access it through a pointer declared as an Order, nor can you pass it to another method expecting an Order as an argument.
您不能通过声明为Order的指针来访问它,您也不能将它传递到另外一个希望以Order作为参数的方法。
This simple design, possible because the data obeys strict LIFO order, means that no complex data structure is needed to track stack contents – a simple pointer to the top of the stack will do.
这个简单的设计,可能是因为数据遵循严格的 后进先出顺序,这意味着没有复杂的数据结构需要跟踪堆栈的内容-一个简单的指针的堆栈的顶部就可以了。
应用推荐